package com.scedu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class User {
    private String id;
    @NotEmpty(message="用户名: 不能为空")
    private String username;
    @NotEmpty(message="姓名: 不能为空")
    @Size(max = 10, message="姓名: 长度不能超过10个字符")
    private String realname;
    @NotEmpty(message="密码: 不能为空")
    @Size(max = 10, message="密码: 长度不能超过10个字符")
    private String password;
    private String sex;
}